package com.cloud.hotline.api.entity;

import javax.persistence.*;

@Table(name = "tc_dic_unit_type")
public class TcDicUnitType {
    @Id
    @Column(name = "unit_id")
    private Integer unitId;

    @Column(name = "unit_name")
    private String unitName;

    @Column(name = "unit_type_id")
    private Integer unitTypeId;

    @Column(name = "unit_type_name")
    private String unitTypeName;

    @Column(name = "origin_unit_name")
    private String originUnitName;

    @Column(name = "display_order")
    private Integer displayOrder;
    
    @Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + ((originUnitName == null) ? 0 : originUnitName.hashCode());
		result = prime * result + ((unitName == null) ? 0 : unitName.hashCode());
		return result;
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		TcDicUnitType other = (TcDicUnitType) obj;
		if (originUnitName == null) {
			if (other.originUnitName != null)
				return false;
		} else if (!originUnitName.equals(other.originUnitName))
			return false;
		if (unitName == null) {
			if (other.unitName != null)
				return false;
		} else if (!unitName.equals(other.unitName))
			return false;
		return true;
	}

	/**
     * @return unit_id
     */
    public Integer getUnitId() {
        return unitId;
    }

    /**
     * @param unitId
     */
    public void setUnitId(Integer unitId) {
        this.unitId = unitId;
    }

    /**
     * @return unit_name
     */
    public String getUnitName() {
        return unitName;
    }

    /**
     * @param unitName
     */
    public void setUnitName(String unitName) {
        this.unitName = unitName;
    }

    /**
     * @return unit_type_id
     */
    public Integer getUnitTypeId() {
        return unitTypeId;
    }

    /**
     * @param unitTypeId
     */
    public void setUnitTypeId(Integer unitTypeId) {
        this.unitTypeId = unitTypeId;
    }

    /**
     * @return unit_type_name
     */
    public String getUnitTypeName() {
        return unitTypeName;
    }

    /**
     * @param unitTypeName
     */
    public void setUnitTypeName(String unitTypeName) {
        this.unitTypeName = unitTypeName;
    }

    /**
     * @return display_order
     */
    public Integer getDisplayOrder() {
        return displayOrder;
    }

    /**
     * @param displayOrder
     */
    public void setDisplayOrder(Integer displayOrder) {
        this.displayOrder = displayOrder;
    }

	public String getOriginUnitName() {
		return originUnitName;
	}

	public void setOriginUnitName(String originUnitName) {
		this.originUnitName = originUnitName;
	}
    
    
}